package midway.madness.post.podcast;

import midway.madness.post.PostObject;
import android.content.Context;
import android.content.Intent;

public class PodcastObject extends PostObject {

	private String url;

	public PodcastObject(Context pContext, int pId, String pAuthor,
			String pTitle, String pContent, String pDate, String pSlug,
			String[] pComments) {
		super(pContext, pId, pAuthor, pTitle, pContent, pDate, pSlug, pComments);
		url = getContent();
	}

	@Override
	public void goForIntent() {
		Intent intent = new Intent(getContext(), PodcastActivity.class);
		intent.putExtra("url", url);
		intent.putExtra("title", getTitle());
		intent.putExtra("author", getAuthor());
		intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		getContext().startActivity(intent);
	}

}
